{extend name="base/main" /}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>用户管理 /用户展示</h5>
        </div>
        <div class="ibox-content">
            <div class="row row-lg">
                <div class="col-sm-12">

                    <div>
                        <div class="layui-inline">
                            <label class="layui-form-label">姓名编号：</label>
                            <div class="layui-input-inline">
                                <input type="text" name="nickname" lay-verify="nickname" style="width: 100%" autocomplete="off" placeholder="请输入姓名、编号" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-inline">
                            <label class="layui-form-label">状态</label>
                            <div class="layui-input-block">
                                <select name="interest" lay-filter="aihao">
                                    <option value="2">全部</option>
                                    <option value="3">正常</option>
                                    <option value="4">锁定</option>
                                </select>
                            </div>
                        </div>

                        <div class="layui-inline">
                            <label class="layui-form-label">性别</label>
                            <div class="layui-input-block">
                                <select name="interest" lay-filter="aihao">
                                    <option value="2">男</option>
                                    <option value="3">女</option>
                                    <option value="4">保密</option>
                                </select>
                            </div>
                        </div>

                        <div class="layui-inline">
                            <label class="layui-form-label">消费情况</label>
                            <div class="layui-input-block">
                                <select name="interest" lay-filter="aihao">
                                    <option value="2">全部</option>
                                    <option value="3">1+</option>
                                    <option value="4">2+</option>
                                    <option value="4">3+</option>
                                    <option value="4">4+</option>
                                    <option value="4">5+</option>
                                    <option value="4">6+</option>
                                    <option value="4">7+</option>
                                </select>
                            </div>
                        </div>

                        <div class="layui-inline">
                            <label class="layui-form-label">国家</label>
                            <div class="layui-input-block">
                                <select name="interest" lay-filter="aihao">
                                    <option value="2">中国</option>
                                    <option value="3">外国</option>
                                </select>
                            </div>
                        </div>

                        <div class="layui-inline">
                            <label class="layui-form-label">访问情况</label>
                            <div class="layui-input-block">
                                <select name="interest" lay-filter="aihao">
                                    <option value="2">全部</option>
                                    <option value="3">时间段未访问</option>
                                    <option value="3">时间段访问过</option>
                                    <option value="3">首次访问</option>
                                </select>
                            </div>
                        </div>

                        <div class="layui-inline">
                            <label class="layui-form-label">日期时间范围</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" id="test10" placeholder=" - ">
                            </div>
                        </div>

                        <div class="layui-inline">
                            <div class="col-sm-6 col-sm-offset-1">
                                <input type="hidden" name="soutime" class="soutime">
                                <button type="button" class="layui-btn"><i class="layui-icon"></i>搜索</button>
                            </div>
                        </div>
                    </div>


                    <div style="margin-bottom: 15px;">
                        <form class="form-horizontal m-t" action="{:url('Yong/index')}" method="get">
                            <div class="form-group">

                            </div>
                        </form>
                    </div>

                    <div class="fixed-table-toolbar">
                        <div class="bars pull-left" style="margin-top:0px;">


                        </div>
                    </div>
                    <div class="example-wrap">
                        <div class="example">
                            <table class="table table-hover">
                                <thead>
                                <tr>
                                    <th><input type="checkbox" class="i-checks check-all"></th>
                                    <th>编号</th>
                                    <th>头像</th>
                                    <th>姓名</th>
                                    <th>会员身份</th>
                                    <th>手机号码</th>
                                    <th>推荐人</th>
                                    <th>金币余额</th>
                                    <th>会员记录</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="data" id="vo"}
                                <tr>
                                    <td><input type="checkbox" class="i-checks ids" name="uid[]" value="{$vo.uid}"/></td>
                                    <td>{$vo.uid}</td>
                                    <td><img src="{$vo.avatar}" width="50px" height="50px"></td>
                                    <td>{$vo.name}</td>
                                    <td>
                                        <?php if($vo['is_senior'] == 1){ ?>
                                        会员
                                        <?php }else{ ?>
                                        非会员
                                        <?php } ?>
                                        </td>
                                    <td>{$vo.phone}</td>
                                    <td>{$vo.spread_uid}</td>
                                    <td>{$vo.gold_num}</td>
                                    <td><a href="{:url('User/edit',['uid'=>$vo['uid']])}">会员记录</a></td>
                                    <td>
                                        <a href="{:url('User/edit',['uid'=>$vo['uid']])}" class="btn btn-info btn-xs"><i class="fa fa-paste"></i> 编辑 </a>
                                        <a href="{:url('User/remove',['uid'=>$vo['uid']])}" class="btn btn-info btn-xs"><i class="fa fa-paste"></i> 删除 </a>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </div>


                    </div>
                </div>
            </div>
            {$list->render()}
        </div>

    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //日期时间范围
        laydate.render({
            elem: '#test10'
            ,type: 'datetime'
            ,range: true
        });

    });
</script>



{/block}